package com.ssc.jasperttest;

import java.util.ArrayList;
import java.util.List;

public class AdherentAnnuaireBean {
	private Adherent adherent;

	private List<Adherent> children = new ArrayList<Adherent>();
	private Adherent spouse;

	public AdherentAnnuaireBean(Adherent adh) {
		this.adherent = adh;
	}

	public Adherent getSpouse() {
		return adherent.getSpouse();
	}

	public List<Adherent> getChildren() {
		return adherent.getChildren();
	}

	public String getNom() {
		return adherent.getNom();
	}

	public String getPrenom() {
		if (adherent.getSpouse() != null) {
			if (adherent.isMale()) {
				return adherent.getPrenom() + " & " + adherent.getSpouse().getPrenom();
			} else {
				return adherent.getSpouse().getPrenom() + " & " + adherent.getPrenom();
			}
		}
		return adherent.getPrenom();
	}

	public String getCivilite() {
		if (adherent.getSpouse() != null) {
			return "Fr&Sr";
		}
		return adherent.getCivilite();
	}

	public String getCommentaire() {
		return adherent.getCommentaire();
	}

	public String getAdresse1() {
		return adherent.getAdresse1();
	}

	public String getAdresse2() {
		return adherent.getAdresse2();
	}

	public String getEmail1() {
		return adherent.getEmail1();
	}

	public String getEmail2() {
		return adherent.getEmail2();
	}

	public String getVille() {
		return adherent.getVille();
	}

	public String getCodePostal() {
		return adherent.getCodePostal();
	}

	public String getFixe1() {
		return adherent.getFixe1();
	}

	public String getFixe2() {
		return adherent.getFixe2();
	}

	public String getPort1() {
		return adherent.getPort1();
	}

	public String getPort2() {
		return adherent.getPort2();
	}

	public String getPort3() {
		return adherent.getPort3();
	}

	public boolean isMale() {
		return adherent.isMale();
	}

	public String toString() {
		return adherent.toString();
	}
	public String getLibPort1() {
		return adherent.getLibPort1();
	}
	
	public String getLibPort2() {
		return adherent.getLibPort2();
	}
	
	public String getLibEmail1() {
		return adherent.getLibEmail1();
	}
	
	public String getLibEmail2() {
		return adherent.getLibEmail2();
	}

	public String getNomEnfant1() {
		return adherent.getNomEnfant1();
	}

	public void setNomEnfant1(String nomEnfant1) {
		adherent.setNomEnfant1(nomEnfant1);
	}

	public String getNomEnfant2() {
		return adherent.getNomEnfant2();
	}

	public String getLibFixe1() {
		return adherent.getLibFixe1();
	}

	public void setLibFixe1(String libFixe1) {
		adherent.setLibFixe1(libFixe1);
	}

	public String getLibFixe2() {
		return adherent.getLibFixe2();
	}

	public void setLibFixe2(String libFixe2) {
		adherent.setLibFixe2(libFixe2);
	}

	public void setNomEnfant2(String nomEnfant2) {
		adherent.setNomEnfant2(nomEnfant2);
	}

	public String getNomEnfant3() {
		return adherent.getNomEnfant3();
	}

	public void setNomEnfant3(String nomEnfant3) {
		adherent.setNomEnfant3(nomEnfant3);
	}

	public String getNomEnfant4() {
		return adherent.getNomEnfant4();
	}

	public void setNomEnfant4(String nomEnfant4) {
		adherent.setNomEnfant4(nomEnfant4);
	}

	public String getNomEnfant5() {
		return adherent.getNomEnfant5();
	}

	public void setNomEnfant5(String nomEnfant5) {
		adherent.setNomEnfant5(nomEnfant5);
	}

	public String getTelEnfant1() {
		return adherent.getTelEnfant1();
	}

	public void setTelEnfant1(String telEnfant1) {
		adherent.setTelEnfant1(telEnfant1);
	}

	public String getTelEnfant2() {
		return adherent.getTelEnfant2();
	}

	public void setTelEnfant2(String telEnfant2) {
		adherent.setTelEnfant2(telEnfant2);
	}

	public String getTelEnfant3() {
		return adherent.getTelEnfant3();
	}

	public void setTelEnfant3(String telEnfant3) {
		adherent.setTelEnfant3(telEnfant3);
	}

	public String getTelEnfant4() {
		return adherent.getTelEnfant4();
	}

	public void setTelEnfant4(String telEnfant4) {
		adherent.setTelEnfant4(telEnfant4);
	}

	public String getTelEnfant5() {
		return adherent.getTelEnfant5();
	}

	public void setTelEnfant5(String telEnfant5) {
		adherent.setTelEnfant5(telEnfant5);
	}
	
	
}
